#!/bin/bash

if [ -d "${LCM_PATH}" ]; then
    url="http://localhost:6600/lcmUI/"
    count=`/usr/bin/curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} "$url" | grep -c 200`
    if [ $count -ne 0 ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
fi

